package com.hrprojectback.dto;

import org.springframework.stereotype.Component;

@Component
public class UserInfo {
    private String username;//员工工号

    private String name;//员工姓名

    private int pageNumber;//首页

    private int pageNum = 1;//前往的页数

    private int pageSize = 1;//每页显示的数据

    private String gender;//性别

    private String status;//员工状态

    public UserInfo() {
    }

    public UserInfo(String username, String name, int pageNumber, int pageNum, int pageSize, String gender, String status) {
        this.username = username;
        this.name = name;
        this.pageNumber = pageNumber;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.gender = gender;
        this.status = status;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "username='" + username + '\'' +
                ", name='" + name + '\'' +
                ", pageNumber=" + pageNumber +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", gender=" + gender +
                ", status=" + status +
                '}';
    }
}
